package it.uniroma2.art.owlart.langsearch.index.config;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;

public abstract class IndexingConfigurationAdapter implements IndexingConfiguration {

	Collection<String> toBeIndexedLanguages;
	Collection<String> URILanguages;

	/**
	 * 
	 * @param languages
	 *            the set of languages to be indexed. By default, there is no associated language to the local
	 *            names of the URI, though this can be set later with
	 *            {@link #setLanguagesOfURILocalNames(String...)}
	 */
	public IndexingConfigurationAdapter(String... languages) {
		toBeIndexedLanguages = Arrays.asList(languages);
		URILanguages = new ArrayList<String>();
	}

	public Collection<String> getIndexedLanguages() {
		return toBeIndexedLanguages;
	}

	public Collection<String> getLanguagesOfURILocalNames() {
		return URILanguages;
	}

	public void setLanguagesOfURILocalNames(String... languages) {
		URILanguages = Arrays.asList(languages);
	}
}